package com.hmz.backend.controller.friend;

import cn.hutool.json.JSONObject;
import com.hmz.backend.service.friend.GetUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetUserController {
    @Autowired
    private GetUserService getUserService;
    @GetMapping("/getuser")
    private JSONObject getUser(@RequestParam String userName, @RequestParam(name = "self") int userId){
        System.out.println("搜索好友接口调用");
        return getUserService.getUser(userName,userId);
    }

}
